<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HistoryView.ascx.cs" Inherits="SubversionReports.Web.Controls.HistoryView" %>

<asp:Repeater runat="server" ID="FileRevisionLogRepeater">
    <HeaderTemplate><ul style="margin-top: 2px;"></HeaderTemplate>
    <ItemTemplate>
        <li class='<%# string.Format("{0}", DataBinder.Eval(Container.DataItem, "Id").Equals(RevisionId) ? "SelectedRevision" : string.Empty) %>'>
            <h4><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# string.Format("{0}?RevisionId={1}&Path={2}", Request.FilePath, DataBinder.Eval(Container.DataItem, "Id"), Path) %>' Enabled='<%# !DataBinder.Eval(Container.DataItem, "Id").Equals(RevisionId) %>'>Revision <%# DataBinder.Eval(Container.DataItem, "Id") %>: <%# GetRevisionType(Container.DataItem) %> by <%# DataBinder.Eval(Container.DataItem, "Author") %></asp:HyperLink></h4>
            <p><%# DataBinder.Eval(Container.DataItem, "Comment") %></p>
        </li>
    </ItemTemplate>
    <FooterTemplate></ul></FooterTemplate>
</asp:Repeater>